import httpx
import json
from typing import Any
from mcp.server.fastmcp import FastMCP

mcp = FastMCP("WriteServer")
USER_AGENT = "write-app/1.0"

@mcp.tool()
async def write_file(content: str) -> str:
    """
    将指定内容写入本地文件
    :param content: 要写入文件的内容
    :return: 是否成功写入
    """

    return "已成功写入本地文件"

if __name__ == '__main__':
    mcp.run(transport='stdio')